import { http } from "../http"

function banners(data){
  return http({
    url:"/api/leju/front/home/banners",
    data
  })
}

function hotList(data){
  return http({
    url:"/api/leju/front/home/hotList",
    data
  })
}

function productList(data){
  return http({
    url:"/api/leju/front/home/productList",
    data
  })
}
function brandList(data){
  return http({
    url:"/api/leju/front/home/brandList",
    data
  })
}
function detail(data){
  return http({
    url:"/api/leju/admin/product/detail",
    data
  })
}
function addcart(data){
  return http({
    url:"/api/leju/front/cart/addCart",
    method:'post',
	data
  })
}

export {
  banners,hotList,productList,brandList,detail,addcart
}